package db.nio;

import java.nio.ByteBuffer;

/**
 * 解码器
 * Created by daibin on 16-9-14.
 */
public interface Encoder<T> {

    /**
     * 解码
     * @param data
     * @return
     */
    ByteBuffer encode(T data);
}
